Ask an LLM a follow-up question without sending history ('What is the capital of India?' then 'How many people live there?') and observe that it loses the thread.
Exercise (2)
Store the conversation in an array and send the full message list with each request, then repeat the same follow-up and compare.
Explain that LLM APIs are stateless (they have no built-in memory of past requests), meaning every new prompt is treated as a completely fresh interaction.
Guide Exercise 1 to show how asking ambiguous follow-ups (like "How many people live there?") fails when isolated from prior turns.
Demonstrate Exercise 2 by maintaining an array of messages, appending both user prompts and assistant replies before sending the entire thread to the API payload.